/*
 * @Author: wuqiang
 * @Date: 2021-03-11 13:43:21
 * @LastEditors: wuqiang
 * @LastEditTime: 2023-11-11 13:24:48
 */
const { createProxyMiddleware } = require('http-proxy-middleware')

module.exports = function (app) {
  app.use(
    createProxyMiddleware('/api', {
      // 代理服务器地址
      target: 'https://tbhd-test.huijun365.com',
      secure: false,
      changeOrigin: true,
      pathRewrite: {
        '^/api': '/'
      }
    })
  )
}
